home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / ProgEd / Install < prev    next >
Text File  |  1996-09-26  |  16KB  |  883 lines

  1. ;
  2. ; ProgED Installer Utility
  3. ;
  4. ; This script is Copyright ©1995 Giovanni Lambiase
  5. ;
  6.  
  7. (
  8.     ; Setup English default strings
  9.  
  10.     (set #intro
  11.         (cat
  12.             "ProgED V2.0 - All Rights Reserved.\n"
  13.             "\n"
  14.             "ProgED  ©'95-'96 Giovanni Lambiase\n"
  15.             "Triton.library - Copyright Stefan Zeiger\n"
  16.             "Reqtools.library - Copyright Nico François\n"
  17.             "Powerpacker.library - Copyright Nico François\n"
  18.             "XpkMaster.library - Copyright Urban Dominik Müller & Bryan Ford\n"
  19.             "\n"
  20.             "ProgED is NOT 'freely distributable' but SHAREWARE.\n"
  21.             "Look at the licence file before installing ProgED.\n"
  22.             "Installing this software means\naccepting that licence.\n"
  23.             "Thank you.\n"
  24.         )
  25.     )
  26.  
  27.     (set #badkick "\n Sorry, this package requires OS v2.1 or better.\n")
  28.  
  29.     (set #askdir
  30.         (cat    "Select where you would like to install "
  31.             "ProgED. A drawer called 'ProgED' will "
  32.             "be created here."
  33.         )
  34.     )
  35.  
  36.     (set #askdir_help
  37.         (cat
  38.             "ProgED and all necessary files will be installed "
  39.             "in the directory of your choice. You may wish "
  40.             "to create a new directory for ProgED by using "
  41.             "the 'Make New Drawer' gadget.\n\n"
  42.             "You may install this version over your existing "
  43.             "version of ProgED, but you will loose previous "
  44.             "files. Current preference settings will be "
  45.             "backuped."
  46.         )
  47.     )
  48.  
  49.     (set #overwrite    "The 'ProgED' directory already exists, overwrite?")
  50.  
  51.     (set #overwrite_help
  52.         (cat
  53.             "You may stop the install to "
  54.             "avoid overwriting your current "
  55.             "version of ProgED.\n\n"
  56.             "Continuing the install will "
  57.             "overwrite your current files "
  58.             "and you will loose your current "
  59.             "preferences."
  60.         )
  61.     )
  62.  
  63.     (set #yes "Yes")
  64.  
  65.     (set #no "No")
  66.  
  67.     (set #quit "Quit")
  68.  
  69.         (set #ext "ENG")
  70.  
  71.     (set #havemwb "Do you have MagicWB installed on your system ?")
  72.  
  73.     (set #havemsb_help
  74.         (cat
  75.             "MagicWB is an icon package by Martin Huttenloher "
  76.             "(© 1993). MagicWB icons looks 3D, 8 colors, ecc. "
  77.             "If you haven't it look at your BBS to download "
  78.             "1.2 PD version."
  79.         )
  80.     )
  81.  
  82.     (set #installed "ProgED will be installed in ")
  83.  
  84.     (set #installing "Installing ProgED Program...")
  85.  
  86.     (set #creating "Creating 'ProgED' directory")
  87.  
  88.     (set #copyingexe "Copying ProgED executable...")
  89.  
  90.     (set #copyingexeprt "Copying PED_Print executable...")
  91.  
  92.     (set #copyingman "Copying Manual...")
  93.  
  94.     (set #copyinghyst "Copying Hystory...")
  95.  
  96.     (set #crticonsdir "Creating 'Icons' directory")
  97.  
  98.     (set #crtprjdir "Creating 'Projects' directory")
  99.  
  100.     (set #crtclientsdir "Creating 'Clients' directory")
  101.  
  102.     (set #crtfoldersdir "Creating 'Folders' directory")
  103.  
  104.     (set #crtscannersdir "Creating 'Scanners' directory")
  105.  
  106.     (set #crtmacrosdir "Creating 'Macros' directory")
  107.  
  108.     (set #crtcatalogsdir "Creating 'Catalogs' directory")
  109.  
  110.     (set #crtldir "Creating 'L' directory")
  111.  
  112.     (set #crtsasc "Creating 'SASC_Support' directory")
  113.  
  114.     (set #crtsources "Creating 'Sources' directory")
  115.  
  116.     (set #thanks
  117.         (cat
  118.             "Thanks for registering. Supporting shareware's authors is Amiga's future! "
  119.             "Now you should also install "
  120.             "the triton.library. You can find a general "
  121.             "version of this library in this archive. "
  122.         )
  123.     )
  124.  
  125.     (set #nokeyfile
  126.         (cat
  127.             "No keyfile was found during "
  128.             "installation. For details of how to register "
  129.             "and receive the full version, refer to the "
  130.             "documentation. If you are a registered user "
  131.             "please use UpdateKeyFile program to update your "
  132.             "keyfile. DO NOT USE KEYFILES OF 1.0/1.1 "
  133.             "RELEASES. THANKS. Now you should also install "
  134.             "the triton.library. You can find a general "
  135.             "version of this library in this archive. "
  136.         )
  137.     )
  138.  
  139.     (set #reset
  140.         (cat
  141.             "\n\nWhen this installation stops remember that you MUST "
  142.             "reset your Amiga to properly setup ProgED enviroment!"
  143.         )
  144.     )
  145.  
  146.     (set #setup1
  147.         (cat
  148.             "To properly setup ProgED I have to modify your "
  149.             "User-StartUp adding following command:\n\n"
  150.         )
  151.     )
  152.  
  153.     (set #setup2
  154.         (cat
  155.             "If you skip this pass you MUST manually enter "
  156.             "it later."
  157.         )
  158.     )
  159.  
  160.     (set #setup_help
  161.         (cat
  162.             "ProgED needs an Assign in main directory to "
  163.             "properly setup. If you skip this pass you MUST "
  164.             "manually enter it later in your User-StartUp or "
  165.             "in a shell prior to run ProgED."
  166.         )
  167.     )
  168.  
  169.     (set #prefsbackuped
  170.         (cat
  171.             "I found a previous ProgED preferences file. I "
  172.                         "backuped it. BUT DON'T USE IT IN PROGED2.0! "
  173.             "PREFS FILE FORMAT IS CHANGED!"
  174.         )
  175.     )
  176.  
  177.     ; If language is italian then ...
  178.  
  179.     (if (= @language "italiano")
  180.     (
  181.     ; Setup Italian strings
  182.  
  183.     (set #intro
  184.         (cat
  185.             "ProgED V2.0 - All Rights Reserved.\n"
  186.             "\n"
  187.             "ProgED  ©'95-'96 Giovanni Lambiase\n"
  188.             "Triton.library - Copyright Stefan Zeiger\n"
  189.             "Reqtools.library - Copyright Nico François\n"
  190.             "Powerpacker.library - Copyright Nico François\n"
  191.             "XpkMaster.library - Copyright Urban Dominik Müller & Bryan Ford\n"
  192.             "\n"
  193.             "ProgED NON E' 'liberamente distribuibile' ma\n"
  194.             "SHAREWARE. Leggi il file di licenza prima di\n"
  195.             "iniziare l'installazione. Installare questo\n"
  196.             " software significa accettare quella licenza.\n"
  197.             "Grazie.\n"
  198.         )
  199.     )
  200.  
  201.     (set #badkick "\n Spiacente, questo pacchetto richiede il sistema operativo OS v2.1 o superiori.\n")
  202.  
  203.     (set #askdir
  204.         (cat    "Selezione dove vuoi installare ProgED. "
  205.             "Un nuovo cassetto chiamato 'ProgED' sarà "
  206.             "creato dove specificato."
  207.         )
  208.     )
  209.  
  210.     (set #askdir_help
  211.         (cat
  212.             "ProgED e tutti i file necessari saranno installati "
  213.             "nella directory scelta. Puoi creare un nuovo cassetto "
  214.             "per ProgED usando il gadget 'Crea nuovo cassetto'.\n\n"
  215.             "Puoi installare questa versione sovrascrivendo "
  216.             "una precedente versione di ProgED, ma perderai i "
  217.             "file precedenti. Le vecchie preferenze saranno "
  218.             "archiviate."
  219.         )
  220.     )
  221.  
  222.     (set #overwrite "Il cassetto 'ProgED' esiste già, lo sovrascrivo ?")
  223.  
  224.     (set #overwrite_help
  225.         (cat
  226.             "Puoi fermare l'installazione per "
  227.             "evitare la sovrascrittura della "
  228.             "versione corrente di ProgED.\n\n"
  229.             "Continuare l'installazione sovrascriverà "
  230.             "i file correnti e perderai le preferenze "
  231.             "correnti."
  232.         )
  233.     )
  234.  
  235.     (set #yes "Si")
  236.  
  237.     (set #no "No")
  238.  
  239.     (set #quit "Esci")
  240.  
  241.         (set #ext "ITA")
  242.  
  243.     (set #havemwb "Hai MagicWB installato sul tuo sistema ?")
  244.  
  245.     (set #havemsb_help
  246.         (cat
  247.             "MagicWB è un package di icone creato da Martin Huttenloher "
  248.             "(© 1993). Le icone di MagicWB sono tridimensionali, hanno "
  249.             "8 colors, ecc. Se non hai ancora installato MagicWB cerca "
  250.             "nella tua BBS la versione 1.2 PD e scaricala."
  251.         )
  252.     )
  253.  
  254.     (set #installed "ProgED sarà installato in ")
  255.  
  256.     (set #installing "Sto installando il ProgED ...")
  257.  
  258.     (set #creating "Sto creando il cassetto 'ProgED'")
  259.  
  260.     (set #copyingexe "Sto copiano l'eseguibile del ProgED ...")
  261.  
  262.     (set #copyingexeprt "Sto copiando l'eseguibile del PED_Print ...")
  263.  
  264.     (set #copyingman "Sto copiano il manuale ...")
  265.  
  266.     (set #copyingHyst "Sto copiano il file Hystory ...")
  267.  
  268.     (set #crticonsdir "Sto creando il cassetto 'Icons'")
  269.  
  270.     (set #crtprjdir "Sto creando il cassetto 'Projects'")
  271.  
  272.     (set #crtclientsdir "Sto creando il cassetto 'Clients'")
  273.  
  274.     (set #crtfoldersdir "Sto creando il cassetto 'Folders'")
  275.  
  276.     (set #crtscannersdir "Sto creando il cassetto 'Scanners'")
  277.  
  278.     (set #crtmacrosdir "Sto creando il cassetto 'Macros'")
  279.  
  280.     (set #crtcatalogsdir "Sto creando il cassetto 'Catalogs'")
  281.  
  282.     (set #crtldir "Sto creando il cassetto 'L'")
  283.  
  284.     (set #crtsasc "Sto creando il cassetto 'SASC_Support'")
  285.  
  286.     (set #thanks
  287.         (cat
  288.             "Grazie per esserti registrato. Aiutare gli autori di software shareware è il futuro di Amiga! "
  289.             "Ora dovresti anche installare la triton.library. "
  290.             "Puoi trovarne una versione generale in questo archivio. "
  291.         )
  292.     )
  293.  
  294.     (set #nokeyfile
  295.         (cat
  296.             "Nessun keyfile trovato durante l'installazione. "
  297.             "Per i dettagli riguardo la registrazione e su come "
  298.             "ricevere una versione pienamente funzionante leggi "
  299.             "la documentazione allegata. Se sei un utente "
  300.             "registrato, per favore, usa il programma "
  301.             "UpdateKeyFile per aggiornare il tuo vecchio keyfile. "
  302.             "NON USARE UN KEYFILE DELLA 1.0/1.1. GRAZIE. "
  303.             "Ora dovresti anche installare la triton.library. "
  304.             "Puoi trovarne una versione generale in questo archivio. "
  305.         )
  306.     )
  307.  
  308.     (set #reset
  309.         (cat
  310.             "\n\nQuando questa installazione sarà terminata ricorda "
  311.             "che DEVI resettare il tuo Amiga per preparare propriamente "
  312.             "l'ambiente del ProgED!"
  313.         )
  314.     )
  315.  
  316.     (set #setup1
  317.         (cat
  318.             "Per preparare l'ambiente del ProgED DEVO modificare la tua "
  319.             "User-StartUp aggiungendo i seguenti comandi:\n\n"
  320.         )
  321.     )
  322.  
  323.     (set #setup2    "Se salti questo passo DOVRAI inserirli manualmente più tardi.")
  324.  
  325.     (set #setup_help
  326.         (cat
  327.             "ProgED necessita di un assegnamento alla sua directory "
  328.             "principale al fine di funzionare correttamente. Se "
  329.             "salti questo passo DOVRAI inserirlo manualmente nella "
  330.             "tua User-StartUp o in una shell prima di eseguire il ProgED."
  331.         )
  332.     )
  333.  
  334.     (set #prefsbackuped
  335.         (cat
  336.             "Ho trovato una precedente versione del file di "
  337.                         "configurazione di ProgED. E' stato rinominato. "
  338.                         "MA NON UTILIZZARLO CON PROGED2.0! IL FORMATO "
  339.             "FILE DELLE PREFERENZE E' CAMBIATO!"
  340.         )
  341.     )))
  342.  
  343.     (message #intro)
  344.  
  345.     ; sure we are running under a 2.1 KICK ?
  346.  
  347.     (if (< (/ (getversion) 65536) 38)
  348.         (
  349.             (message #badkick)
  350.             (exit (quiet))
  351.         )
  352.     )
  353.  
  354.  
  355.     ; Ask where to install it...
  356.  
  357.     (set destdir
  358.         (askdir
  359.             (prompt #askdir)
  360.             (help #askdir_help)
  361.             (default @default-dest)
  362.             (disk)
  363.         )
  364.     )
  365.  
  366.     (set destdir
  367.         (tackon destdir "ProgED")
  368.     )
  369.  
  370.     (set @default-dest destdir)
  371.  
  372.     ; See whether this directory exists, if so warn the user
  373.  
  374.     (if (exists @default-dest) 
  375.         (
  376.             (if (= 0 (askbool
  377.                     (prompt #overwrite)
  378.                     (help #overwrite_help)
  379.                     (choices #yes #quit)
  380.                 ))
  381.  
  382.                 (
  383.  
  384.                 ; User wishes to quit
  385.  
  386.                 (exit (quiet))
  387.                 )
  388.  
  389.             )
  390.         )
  391.     )
  392.  
  393.     ; Ask user if he wants MagicWB icons
  394.     ; and figure out where pick up icons
  395.  
  396.     (if
  397.         (askbool
  398.             (prompt #havemwb)
  399.             (help #havemsb_help)
  400.             (choices #yes #no)
  401.         )
  402.         (set insticonsdir "Icons/MagicWB")
  403.         (set insticonsdir "Icons/Standard")
  404.     )
  405.  
  406.     ; Prompt for choosed dir
  407.  
  408.     (message #installed @default-dest)
  409.  
  410.     ; Start!
  411.  
  412.     (complete 0)
  413.  
  414.     (working #installing)
  415.  
  416.     ; Create the directory if it doesn't exist
  417.  
  418.     (if (= 0 (exists @default-dest))
  419.         (
  420.             (makedir @default-dest
  421.                 (prompt #creating)
  422.                 (infos)
  423.             )
  424.         )
  425.     )
  426.  
  427.     (working #copyingexe)
  428.  
  429.     ; Install the ProgED executable file
  430.  
  431.     (copyfiles
  432.         (source "ProgED")
  433.         (dest @default-dest)
  434.     )
  435.  
  436.     ; Install the prefs dir
  437.  
  438.     (complete 10)
  439.  
  440.     (set prefsdir (tackon @default-dest "Prefs"))
  441.  
  442.     (if (= 0 (exists prefsdir))
  443.         (
  444.             (makedir prefsdir)
  445.         )
  446.     )
  447.  
  448.     (copyfiles
  449.         (source "Prefs")
  450.         (dest prefsdir)
  451.         (all)
  452.     )
  453.  
  454.     (complete 20)
  455.  
  456.     ; Install the PED executable file
  457.  
  458.     (copyfiles
  459.         (source "PED")
  460.         (dest @default-dest)
  461.     )
  462.  
  463.     (delete
  464.         (tackon @default-dest "PED.info")
  465.     )
  466.  
  467.     ; Install the UpdateKeyFile executable file
  468.  
  469.     (copyfiles
  470.         (source "UpdateKeyFile")
  471.         (dest @default-dest)
  472.     )
  473.  
  474.     (complete 25)
  475.  
  476.     (working #copyingexeprt)
  477.  
  478.     ; Install the PED_Print executable file
  479.  
  480.     (copyfiles
  481.         (source "PED_Print")
  482.         (dest @default-dest)
  483.     )
  484.  
  485.     (complete 30)
  486.  
  487.     (working #copyingman)
  488.  
  489.     ; Install the Manual
  490.  
  491.     (copyfiles
  492.         (source (cat "Manual_" #ext))
  493.         (dest @default-dest)
  494.         (newname "Manual")
  495.     )
  496.  
  497.     ; Install the Hystory
  498.  
  499.     (copyfiles
  500.         (source "Hystory")
  501.         (dest @default-dest)
  502.     )
  503.  
  504.     (complete 35)
  505.  
  506.     (working #crticonsdir)
  507.  
  508.     ; Create icons' dir
  509.  
  510.     (set iconsdir (tackon @default-dest "Icons"))
  511.  
  512.     (if (= 0 (exists iconsdir))
  513.         (
  514.             (makedir iconsdir)
  515.  
  516.             (copyfiles
  517.                 (source (tackon insticonsdir "Icons.info"))
  518.                 (dest @default-dest)
  519.             )
  520.         )
  521.     )
  522.  
  523.     ; Copy all icons
  524.  
  525.     (copyfiles
  526.         (source (tackon insticonsdir "Icons"))
  527.         (dest iconsdir)
  528.         (all)
  529.     )
  530.  
  531.     (complete 40)
  532.  
  533.     (working #crtprjdir)
  534.  
  535.     ; Create projects' dir
  536.  
  537.     (set projectsdir (tackon @default-dest "Projects"))
  538.  
  539.     (if (= 0 (exists projectsdir))
  540.         (
  541.             (makedir projectsdir)
  542.  
  543.             (copyfiles
  544.                 (source (tackon insticonsdir "Projects.info"))
  545.                 (dest @default-dest)
  546.             )
  547.         )
  548.     )
  549.  
  550.     (complete 45)
  551.  
  552.     (working #crtclientsdir)
  553.  
  554.     ; Create clients' dir
  555.  
  556.     (set clientsdir (tackon @default-dest "Clients"))
  557.  
  558.     (if (= 0 (exists clientsdir))
  559.         (
  560.             (makedir clientsdir)
  561.  
  562.             (copyfiles
  563.                 (source (tackon insticonsdir "Clients.info"))
  564.                 (dest @default-dest)
  565.             )
  566.         )
  567.     )
  568.  
  569.     ; Copy all examples clients
  570.  
  571.     (copyfiles
  572.         (source "Clients")
  573.         (dest clientsdir)
  574.         (all)
  575.     )
  576.  
  577.     (complete 55)
  578.  
  579.     (working #crtfoldersdir)
  580.  
  581.     ; Create folders' dir
  582.  
  583.     (set foldersdir (tackon @default-dest "Folders"))
  584.  
  585.     (if (= 0 (exists foldersdir))
  586.         (
  587.             (makedir foldersdir)
  588.  
  589.             (copyfiles
  590.                 (source (tackon insticonsdir "Folders.info"))
  591.                 (dest @default-dest)
  592.             )
  593.         )
  594.     )
  595.  
  596.     ; Copy all examples folders
  597.  
  598.     (copyfiles
  599.         (source "Folders")
  600.         (dest foldersdir)
  601.         (all)
  602.     )
  603.  
  604.     (complete 60)
  605.  
  606.     (working crtscannersdir)
  607.  
  608.     ; Create scanners' dir
  609.  
  610.     (set scannersdir (tackon @default-dest "Scanners"))
  611.  
  612.     (if (= 0 (exists scannersdir))
  613.         (
  614.             (makedir scannersdir)
  615.  
  616.             (copyfiles
  617.                 (source (tackon insticonsdir "Scanners.info"))
  618.                 (dest @default-dest)
  619.             )
  620.         )
  621.     )
  622.  
  623.     ; Copy all examples scanners
  624.  
  625.     (copyfiles
  626.         (source "Scanners")
  627.         (dest scannersdir)
  628.         (all)
  629.     )
  630.  
  631.     (complete 65)
  632.  
  633.     (working crtmacrosdir)
  634.  
  635.     ; Create macros' dir
  636.  
  637.     (set macrosdir (tackon @default-dest "Macros"))
  638.  
  639.     (if (= 0 (exists macrosdir))
  640.         (
  641.             (makedir macrosdir)
  642.  
  643.             (copyfiles
  644.                 (source (tackon insticonsdir "Macros.info"))
  645.                 (dest @default-dest)
  646.             )
  647.         )
  648.     )
  649.  
  650.     ; Copy all examples macros
  651.  
  652.     (copyfiles
  653.         (source "Macros")
  654.         (dest macrosdir)
  655.         (all)
  656.     )
  657.  
  658.     (complete 70)
  659.  
  660.     (working #crtcatalogsdir)
  661.  
  662.     ; Create Catalogs dir
  663.  
  664.     (set catalogsdir (tackon @default-dest "Catalogs"))
  665.  
  666.     (if (= 0 (exists catalogsdir))
  667.         (
  668.             (makedir catalogsdir)
  669.         )
  670.     )
  671.  
  672.     ; Copy all catalogs dir
  673.  
  674.     (copyfiles
  675.         (source "Catalogs")
  676.         (dest catalogsdir)
  677.         (all)
  678.     )
  679.  
  680.     (complete 75)
  681.  
  682.     (working crtldir)
  683.  
  684.     ; Create L dir
  685.  
  686.     (set ldir (tackon @default-dest "L"))
  687.  
  688.     (if (= 0 (exists ldir))
  689.         (
  690.             (makedir ldir)
  691.         )
  692.     )
  693.  
  694.     ; Copy all handlers
  695.  
  696.     (copyfiles
  697.         (source "L")
  698.         (dest ldir)
  699.         (all)
  700.     )
  701.  
  702.     (complete 80)
  703.  
  704.     (working #crtsasc)
  705.  
  706.     ; Create SASC_Support dir
  707.  
  708.     (set sascdir (tackon @default-dest "SASC_Support"))
  709.  
  710.     (if (= 0 (exists sascdir))
  711.         (
  712.             (makedir sascdir)
  713.         )
  714.     )
  715.  
  716.     ; Copy all files
  717.  
  718.     (copyfiles
  719.         (source "SASC_Support")
  720.         (dest sascdir)
  721.         (all)
  722.     )
  723.  
  724.     (complete 85)
  725.  
  726.     (working #crtsources)
  727.  
  728.     ; Create sources dir
  729.  
  730.     (set sourcesdir (tackon @default-dest "Sources"))
  731.  
  732.     (if (= 0 (exists sourcesdir))
  733.         (
  734.             (makedir sourcesdir)
  735.         )
  736.     )
  737.  
  738.     ; Copy all files
  739.  
  740.     (copyfiles
  741.         (source "Sources")
  742.         (dest sourcesdir)
  743.         (all)
  744.     )
  745.  
  746.     (complete 90)
  747.  
  748.     ; Copy all icons
  749.  
  750.     (copyfiles
  751.         (source insticonsdir)
  752.         (dest @default-dest)
  753.         (all)
  754.     )
  755.  
  756.     (copyfiles
  757.         (source (tackon insticonsdir "Icons/def_Handler.info"))
  758.         (dest "DEVS:DosDrivers")
  759.         (newname "PED.info")
  760.     )
  761.  
  762.     (copyfiles
  763.         (source (tackon insticonsdir "Icons/def_Handler.info"))
  764.         (dest "DEVS:DosDrivers")
  765.         (newname "PRJ.info")
  766.     )
  767.  
  768.     ; Copy keyfile if it exists
  769.  
  770.     (if (exists "KeyFile")
  771.         (
  772.             (copyfiles
  773.                 (source "KeyFile")
  774.                 (dest @default-dest)
  775.             )
  776.  
  777.             (set foundkeyfile #thanks)
  778.         )
  779.  
  780.         ; Else, note we didn't find one
  781.  
  782.         (
  783.             (set foundkeyfile #nokeyfile)
  784.         )
  785.     )
  786.  
  787.     (set foundkeyfile
  788.         (cat foundkeyfile #reset)
  789.     )
  790.  
  791.     (complete 95)
  792.  
  793.     ; Check backup prefs
  794.  
  795.     (set prefsbackup 0)
  796.     (if (<> 0 (exists "ENVARC:PED/PED.prefs"))
  797.         (
  798.             (rename "ENVARC:PED/PED.prefs" "ENVARC:PED/PED.oldprefs")
  799.             (set prefsbackup 1)
  800.         )
  801.     )
  802.  
  803.     ; Copy EnvArc's file
  804.  
  805.     (set envarcdir "ENVARC:PED")
  806.  
  807.     (if (= 0 (exists envarcdir))
  808.         (
  809.             (makedir envarcdir)
  810.         )
  811.     )
  812.  
  813.     ; Copy  prefs
  814.  
  815.     (copyfiles
  816.         (source (cat "EnvArc/PED.prefs." #ext))
  817.         (dest envarcdir)
  818.         (newname "PED.prefs")
  819.     )
  820.  
  821.     ; Copy Presets' file
  822.  
  823.     (set presetsdir (tackon @default-dest "Presets"))
  824.  
  825.     (if (= 0 (exists presetsdir))
  826.         (
  827.             (makedir presetsdir)
  828.         )
  829.     )
  830.  
  831.     (copyfiles
  832.         (source "Presets")
  833.         (dest presetsdir)
  834.         (all)
  835.     )
  836.  
  837.     ; Copy Handlers' files
  838.  
  839.     (set handlersdir "DEVS:DosDrivers")
  840.  
  841.     (if (= 0 (exists handlersdir))
  842.         (
  843.             (makedir handlersdir)
  844.         )
  845.     )
  846.  
  847.     (copyfiles
  848.         (source "Devs")
  849.         (dest handlersdir)
  850.         (all)
  851.     )
  852.  
  853.     ; Updates User-StartUp
  854.  
  855.     (startup "ProgED"
  856.         (prompt
  857.             (cat
  858.                 #setup1
  859.                 "Assign ProgED: \"" @default-dest "\"\n"
  860.                 "Path ProgED:\n\n"
  861.                 #setup2
  862.             )
  863.         )
  864.         (help #setup_help)
  865.         (command
  866.             "Assign ProgED: \"" @default-dest "\"\n"
  867.             "Path ProgED:\n"
  868.         )
  869.     )
  870.  
  871.     (complete 100)
  872.  
  873.     ; Prefs backuped ?
  874.  
  875.     (if (= 1 prefsbackup)
  876.         (message #prefsbackuped)
  877.     )
  878.  
  879.     ; Say goodbye
  880.  
  881.     (message foundkeyfile)
  882. )
  883.